var mysql = require('mysql');

var options = {
  host: 'localhost',
  user: 'root',
  password: '080910',
  database: 'myapp'
}

exports.createConn = function (){
  var client = mysql.createConnection(options);
  return client;
}

exports.findUser = function (client,callback){
  var selectstatement = 'select * from test';
  client.query(selectstatement, function(errs,rows,fields){
    callback(errs,rows);
  });  
}